Update AI models list - #2470
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The model-list removals driven by the updated sync/exclusion rules can make existing saved AI connections fail provider/model validation when edited, unless a backward-compat handling or migration is added.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates the AI provider model allow-lists in packages/openops and adjusts the tools/scripts/sync-models.ts sync configuration so provider model arrays can be refreshed from upstream @ai-sdk/* type definitions.
Changes:
- Updated
tools/scripts/sync-models.tstype sources and expanded excluded-model filters to control which upstream AI SDK model IDs are synced into provider files. - Refreshed OpenOps provider model lists for Anthropic, OpenAI, Google, Google Vertex, Groq, and xAI to reflect a newer set of supported model IDs.
- Trimmed/removed several previously listed model IDs across providers and introduced new ones (notably newer Gemini/Claude/Grok and additional GPT-* variants).
File summaries
| File | Description |
|---|---|
| tools/scripts/sync-models.ts | Adjusts upstream model-id type sources and excluded-model filters that drive generated provider model lists. |
| packages/openops/src/lib/ai/providers/xai.ts | Updates xAI (Grok) model allow-list exposed to UI/validation. |
| packages/openops/src/lib/ai/providers/openai.ts | Updates OpenAI model allow-list exposed to UI/validation. |
| packages/openops/src/lib/ai/providers/groq.ts | Updates Groq model allow-list exposed to UI/validation. |
| packages/openops/src/lib/ai/providers/google.ts | Updates Google Gemini model allow-list exposed to UI/validation. |
| packages/openops/src/lib/ai/providers/google-vertex.ts | Updates Vertex model allow-list and retains Claude-via-Vertex routing behavior. |
| packages/openops/src/lib/ai/providers/anthropic.ts | Updates Anthropic model allow-list exposed to UI/validation. |
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|



Fixes OPS-4792.
Additional Notes